package com.wdd.libarouter.Interceptor

import android.content.Context
import com.alibaba.android.arouter.facade.Postcard
import com.alibaba.android.arouter.facade.annotation.Interceptor
import com.alibaba.android.arouter.facade.callback.InterceptorCallback
import com.alibaba.android.arouter.facade.template.IInterceptor

/**
 *
 * @ProjectName:    OwnTool
 * @Package:        com.wdd.libarouter.Interceptor
 * @ClassName:      TestInterceptor
 * @Description:     priority 值越小越优先执行
 * @Author:         王丹丹
 * @CreateDate:     2019/12/3 9:40
 * @UpdateUser:     更新者
 * @UpdateDate:     2019/12/3 9:40
 * @UpdateRemark:   更新说明
 * @Version:        1.0
 */
@Interceptor(priority = 8, name = "测试用拦截器")
class TestInterceptor : IInterceptor {
    override fun process(postcard: Postcard?, callback: InterceptorCallback?) {
        callback!!.onContinue(postcard)
    }

    override fun init(context: Context?) {
    }
}